package bairui.international.weixin.portal.miniapp.controller.order.manage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_ProductOrder;

/**
 *
 * 终止
 *
 * @generated
 * 
 * @see STest_C_Order_Manage_Terminal_Post 测试
 *
 */
@Controller
public class C_Order_Manage_Terminal_Post
 extends SC_Order_Manage_Terminal_Post 
{
	@Autowired private Service_ProductOrder service_ProductOrder;
	
	/**
	 * Post请求
	 */
	@Action(Post.class)
	@PostMapping(Post.RequestMappingValue)
	public @FomatOutput @ResponseBody Object post(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Post.PathVariableName.Id) long id
	) throws Exception {
		service_ProductOrder.terminal(id);
		//
		return null;
	}
	

}
